import request from '@/utils/request'

// 类型字典
export function dict(type) {
  return request({
    url: `/system/dict/data/type/${type}`,
    method: 'get',
  })
}
// 根据字典类型查询字典数据信息
export function getDicts(dictType) {
  let stroge = uni.getStorageSync('storage_data')
  let url = ''
  if (stroge) {
    url = '/' + stroge.vuex_user.unitId;
  }
  return request({
    url: '/system/dict/data/type/' + dictType + url,
    method: 'get'
  })
}